---
title: getMutableAIState
description: Reference for the getMutableAIState function from the AI SDK RSC
---

# `getMutableAIState`

Get a mutable copy of the AI state. You can use this to update the state in the server.

## Import

<Snippet text={`import { getMutableAIState } from "ai/rsc"`} prompt={false} />

<ReferenceTable packageName="rsc" functionName="getMutableAIState" />

## Examples

<ExamplesList packageName="rsc" functionName="getMutableAIState" />
